﻿using System;
using TI_BLE_HCI_ClientLib.BaseEntities;
using TI_BLE_HCI_ClientLib.GenericHCIEntities;
using TI_BLE_HCI_ClientLib.HCIBaseEntities;

namespace TI_BLE_HCI_ClientLib.HCICommands
{
    public class HCICommand_GATT_Discover_Characteristics_by_UUID : HCIVendorSpecificCommand
    {
        private const byte CMD = 0x08;

        public HCICommand_GATT_Discover_Characteristics_by_UUID(ushort connHandle, ushort startHandle, ushort endHandle,byte[] type)
            : base(HCIVendorSpecificCommandCSG.GATT,CMD)
        {
            var pars = new BaseEntityParameter[4];

            pars[0] = new WordParameter(connHandle);
            pars[1] = new WordParameter(startHandle);
            pars[2] = new WordParameter(endHandle);
            pars[3] = new ByteArrayParameter(type);

            base.addParameters(pars);
        }
    }
}
